Skip to main content
POST
/
x
/
articles
/
draft
[Step 1/5] Create a new article draft
curl --request POST \
  --url https://api.twexapi.io/x/articles/draft \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "cookie": "<string>"
}
'
{
  "code": 123,
  "msg": "<string>",
  "data": {
    "article_id": "<string>",
    "preview_url": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Twitter cookie string (auth_token=...; ct0=...; twid=...)

Response

Successful Response

code
integer
required

200 = success, 429 = rate limit, 500 = server error

msg
string
required

Human-readable result message

data
ArticleDraftData · object